<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <meta http-equiv="X-UA-Compatible" content="ie=edge">
    <title>书架</title>
    <link rel="stylesheet" href="layui/css/layui.css">
    <link rel="stylesheet" href="css/mybooksroom.css">
    <link rel="stylesheet" href="css/font-awesome.min.css">
</head>

<body>
    <div class="layui-container">
        <div class="layui-row">
            <div class="layui-col-md8 layui-col-md-offset2" style="background-color:#F9F8F6">
                <div><span style="font-size: 18px">我的书籍</span></div>
                <!--弹性盒子-->
                <div class="boxnovel" title="大主宰">
                    <div class="novelimg">
                        <a href="#"><img src="img/dazhuzai.jpg" id="bookimg"></a>
                    </div>
                    <div class="novelname"><a href="novel.do?novelid=${obj.novelid}">大主宰</a></div>
                    <div class="novelauthor"><a href="#" style="color:gray">辰东</a></div>
                </div>
                <!--弹性盒子-->
                <div class="boxnovel" title="大主宰">
                    <div class="novelimg">
                        <a href="#"><img src="img/dazhuzai.jpg" id="bookimg"></a>
                    </div>
                    <div class="novelname"><a href="novel.do?novelid=${obj.novelid}">大主宰</a></div>
                    <div class="novelauthor"><a href="#" style="color:gray">辰东</a></div>
                </div>
                <!--弹性盒子-->
                <div class="boxnovel" title="大主宰">
                    <div class="novelimg">
                        <a href="#"><img src="img/dazhuzai.jpg" id="bookimg"></a>
                    </div>
                    <div class="novelname"><a href="novel.do?novelid=${obj.novelid}">大主宰</a></div>
                    <div class="novelauthor"><a href="#" style="color:gray">辰东</a></div>
                </div>
                <!--弹性盒子-->
                <div class="boxnovel" title="大主宰">
                    <div class="novelimg">
                        <a href="#"><img src="img/dazhuzai.jpg" id="bookimg"></a>
                    </div>
                    <div class="novelname"><a href="novel.do?novelid=${obj.novelid}">大主宰</a></div>
                    <div class="novelauthor"><a href="#" style="color:gray">辰东</a></div>
                </div>
                <div class="boxnovel" title="去添加书籍" style="border:1px solid gray;height:200px;width: 150px;padding:0">
                    <div>
                        <a href="#"><img src="img/add.ico" style="margin:50% 30%"></a>
                    </div>
                </div>
            </div>
        </div>
    </div>
</body>
<script src="layui/layui.js"></script>
<script src="js/jquery.min.js"></script>
<script src="js/mouseRight.min.js"></script>
<script type="text/javascript">
    $(function mouseRight() {
            var child = document.getElementsByClassName('boxnovel');
            for (var i = 0; i < child.length; i++) {
                var a = child[i];
                a.index = i;
                a.onmousedown = function(j) {
                    if (j.which === 3) {

                    }
                }


            }
        })
        // $('.boxnovel').mouseRight({
        //     menu: [{
        //         itemName: "删除",
        //         callback: function() {
        //             alert('确定删除该书籍吗？')
        //         }
        //     }, {
        //         itemName: "撤销",
        //         callback: function() {}
        //     }]
        // });
</script>

</html>